from base.myBase import Tools


class c_task_model(Tools):
    c_task_path = '/task/info'

    def task_action(self, taskid, db):
        mydata = {
            'task_id': taskid
        }
        res = self.session.put(url=self.hosturl+self.c_task_path, data=mydata, headers=db)
        return res.json()
